Optimal. Leaf size=245 \[ \frac {d n \sqrt {1-a^2 x^2}}{a}+\frac {\left (3 a^2 d+e\right ) n \sqrt {1-a^2 x^2}}{3 a^3}-\frac {2 e n \left (1-a^2 x^2\right )^{3/2}}{27 a^3}-d n x \cos ^{-1}(a x)-\frac {1}{9} e n x^3 \cos ^{-1}(a x)+\frac {e n \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{9 a^3}-\frac {\left (3 a^2 d+e\right ) n \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{3 a^3}-\frac {\left (3 a^2 d+e\right ) \sqrt {1-a^2 x^2} \log \left (c x^n\right )}{3 a^3}+\frac {e \left (1-a^2 x^2\right )^{3/2} \log \left (c x^n\right )}{9 a^3}+d x \cos ^{-1}(a x) \log \left (c x^n\right )+\frac {1}{3} e x^3 \cos ^{-1}(a x) \log \left (c x^n\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 245, normalized size of antiderivative = 1.00, number of steps
used = 17, number of rules used = 11, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.611, Rules used = {4756, 455,
45, 2434, 272, 52, 65, 214, 4716, 267, 4724} \begin {gather*} \frac {d n \sqrt {1-a^2 x^2}}{a}-\frac {\sqrt {1-a^2 x^2} \left (3 a^2 d+e\right ) \log \left (c x^n\right )}{3 a^3}+\frac {e \left (1-a^2 x^2\right )^{3/2} \log \left (c x^n\right )}{9 a^3}+\frac {n \sqrt {1-a^2 x^2} \left (3 a^2 d+e\right )}{3 a^3}-\frac {n \left (3 a^2 d+e\right ) \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{3 a^3}-\frac {2 e n \left (1-a^2 x^2\right )^{3/2}}{27 a^3}+\frac {e n \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{9 a^3}+d x \text {ArcCos}(a x) \log \left (c x^n\right )+\frac {1}{3} e x^3 \text {ArcCos}(a x) \log \left (c x^n\right )-d n x \text {ArcCos}(a x)-\frac {1}{9} e n x^3 \text {ArcCos}(a x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 52
Rule 65
Rule 214
Rule 267
Rule 272
Rule 455
Rule 2434
Rule 4716
Rule 4724
Rule 4756
Rubi steps
\begin {align*} \int \left (d+e x^2\right ) \cos ^{-1}(a x) \log \left (c x^n\right ) \, dx &=-\frac {\left (3 a^2 d+e\right ) \sqrt {1-a^2 x^2} \log \left (c x^n\right )}{3 a^3}+\frac {e \left (1-a^2 x^2\right )^{3/2} \log \left (c x^n\right )}{9 a^3}+d x \cos ^{-1}(a x) \log \left (c x^n\right )+\frac {1}{3} e x^3 \cos ^{-1}(a x) \log \left (c x^n\right )-n \int \left (-\frac {\left (3 a^2 d+e\right ) \sqrt {1-a^2 x^2}}{3 a^3 x}+\frac {e \left (1-a^2 x^2\right )^{3/2}}{9 a^3 x}+d \cos ^{-1}(a x)+\frac {1}{3} e x^2 \cos ^{-1}(a x)\right ) \, dx\\ &=-\frac {\left (3 a^2 d+e\right ) \sqrt {1-a^2 x^2} \log \left (c x^n\right )}{3 a^3}+\frac {e \left (1-a^2 x^2\right )^{3/2} \log \left (c x^n\right )}{9 a^3}+d x \cos ^{-1}(a x) \log \left (c x^n\right )+\frac {1}{3} e x^3 \cos ^{-1}(a x) \log \left (c x^n\right )-(d n) \int \cos ^{-1}(a x) \, dx-\frac {1}{3} (e n) \int x^2 \cos ^{-1}(a x) \, dx-\frac {(e n) \int \frac {\left (1-a^2 x^2\right )^{3/2}}{x} \, dx}{9 a^3}+\frac {\left (\left (3 a^2 d+e\right ) n\right ) \int \frac {\sqrt {1-a^2 x^2}}{x} \, dx}{3 a^3}\\ &=-d n x \cos ^{-1}(a x)-\frac {1}{9} e n x^3 \cos ^{-1}(a x)-\frac {\left (3 a^2 d+e\right ) \sqrt {1-a^2 x^2} \log \left (c x^n\right )}{3 a^3}+\frac {e \left (1-a^2 x^2\right )^{3/2} \log \left (c x^n\right )}{9 a^3}+d x \cos ^{-1}(a x) \log \left (c x^n\right )+\frac {1}{3} e x^3 \cos ^{-1}(a x) \log \left (c x^n\right )-(a d n) \int \frac {x}{\sqrt {1-a^2 x^2}} \, dx-\frac {(e n) \text {Subst}\left (\int \frac {\left (1-a^2 x\right )^{3/2}}{x} \, dx,x,x^2\right )}{18 a^3}-\frac {1}{9} (a e n) \int \frac {x^3}{\sqrt {1-a^2 x^2}} \, dx+\frac {\left (\left (3 a^2 d+e\right ) n\right ) \text {Subst}\left (\int \frac {\sqrt {1-a^2 x}}{x} \, dx,x,x^2\right )}{6 a^3}\\ &=\frac {d n \sqrt {1-a^2 x^2}}{a}+\frac {\left (3 a^2 d+e\right ) n \sqrt {1-a^2 x^2}}{3 a^3}-\frac {e n \left (1-a^2 x^2\right )^{3/2}}{27 a^3}-d n x \cos ^{-1}(a x)-\frac {1}{9} e n x^3 \cos ^{-1}(a x)-\frac {\left (3 a^2 d+e\right ) \sqrt {1-a^2 x^2} \log \left (c x^n\right )}{3 a^3}+\frac {e \left (1-a^2 x^2\right )^{3/2} \log \left (c x^n\right )}{9 a^3}+d x \cos ^{-1}(a x) \log \left (c x^n\right )+\frac {1}{3} e x^3 \cos ^{-1}(a x) \log \left (c x^n\right )-\frac {(e n) \text {Subst}\left (\int \frac {\sqrt {1-a^2 x}}{x} \, dx,x,x^2\right )}{18 a^3}-\frac {1}{18} (a e n) \text {Subst}\left (\int \frac {x}{\sqrt {1-a^2 x}} \, dx,x,x^2\right )+\frac {\left (\left (3 a^2 d+e\right ) n\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {1-a^2 x}} \, dx,x,x^2\right )}{6 a^3}\\ &=\frac {d n \sqrt {1-a^2 x^2}}{a}-\frac {e n \sqrt {1-a^2 x^2}}{9 a^3}+\frac {\left (3 a^2 d+e\right ) n \sqrt {1-a^2 x^2}}{3 a^3}-\frac {e n \left (1-a^2 x^2\right )^{3/2}}{27 a^3}-d n x \cos ^{-1}(a x)-\frac {1}{9} e n x^3 \cos ^{-1}(a x)-\frac {\left (3 a^2 d+e\right ) \sqrt {1-a^2 x^2} \log \left (c x^n\right )}{3 a^3}+\frac {e \left (1-a^2 x^2\right )^{3/2} \log \left (c x^n\right )}{9 a^3}+d x \cos ^{-1}(a x) \log \left (c x^n\right )+\frac {1}{3} e x^3 \cos ^{-1}(a x) \log \left (c x^n\right )-\frac {(e n) \text {Subst}\left (\int \frac {1}{x \sqrt {1-a^2 x}} \, dx,x,x^2\right )}{18 a^3}-\frac {1}{18} (a e n) \text {Subst}\left (\int \left (\frac {1}{a^2 \sqrt {1-a^2 x}}-\frac {\sqrt {1-a^2 x}}{a^2}\right ) \, dx,x,x^2\right )-\frac {\left (\left (3 a^2 d+e\right ) n\right ) \text {Subst}\left (\int \frac {1}{\frac {1}{a^2}-\frac {x^2}{a^2}} \, dx,x,\sqrt {1-a^2 x^2}\right )}{3 a^5}\\ &=\frac {d n \sqrt {1-a^2 x^2}}{a}+\frac {\left (3 a^2 d+e\right ) n \sqrt {1-a^2 x^2}}{3 a^3}-\frac {2 e n \left (1-a^2 x^2\right )^{3/2}}{27 a^3}-d n x \cos ^{-1}(a x)-\frac {1}{9} e n x^3 \cos ^{-1}(a x)-\frac {\left (3 a^2 d+e\right ) n \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{3 a^3}-\frac {\left (3 a^2 d+e\right ) \sqrt {1-a^2 x^2} \log \left (c x^n\right )}{3 a^3}+\frac {e \left (1-a^2 x^2\right )^{3/2} \log \left (c x^n\right )}{9 a^3}+d x \cos ^{-1}(a x) \log \left (c x^n\right )+\frac {1}{3} e x^3 \cos ^{-1}(a x) \log \left (c x^n\right )+\frac {(e n) \text {Subst}\left (\int \frac {1}{\frac {1}{a^2}-\frac {x^2}{a^2}} \, dx,x,\sqrt {1-a^2 x^2}\right )}{9 a^5}\\ &=\frac {d n \sqrt {1-a^2 x^2}}{a}+\frac {\left (3 a^2 d+e\right ) n \sqrt {1-a^2 x^2}}{3 a^3}-\frac {2 e n \left (1-a^2 x^2\right )^{3/2}}{27 a^3}-d n x \cos ^{-1}(a x)-\frac {1}{9} e n x^3 \cos ^{-1}(a x)+\frac {e n \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{9 a^3}-\frac {\left (3 a^2 d+e\right ) n \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{3 a^3}-\frac {\left (3 a^2 d+e\right ) \sqrt {1-a^2 x^2} \log \left (c x^n\right )}{3 a^3}+\frac {e \left (1-a^2 x^2\right )^{3/2} \log \left (c x^n\right )}{9 a^3}+d x \cos ^{-1}(a x) \log \left (c x^n\right )+\frac {1}{3} e x^3 \cos ^{-1}(a x) \log \left (c x^n\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 248, normalized size = 1.01 \begin {gather*} -\frac {-54 a^2 d n \sqrt {1-a^2 x^2}-7 e n \sqrt {1-a^2 x^2}-2 a^2 e n x^2 \sqrt {1-a^2 x^2}-3 \left (9 a^2 d+2 e\right ) n \log (x)+27 a^2 d \sqrt {1-a^2 x^2} \log \left (c x^n\right )+6 e \sqrt {1-a^2 x^2} \log \left (c x^n\right )+3 a^2 e x^2 \sqrt {1-a^2 x^2} \log \left (c x^n\right )+3 a^3 x \cos ^{-1}(a x) \left (n \left (9 d+e x^2\right )-3 \left (3 d+e x^2\right ) \log \left (c x^n\right )\right )+27 a^2 d n \log \left (1+\sqrt {1-a^2 x^2}\right )+6 e n \log \left (1+\sqrt {1-a^2 x^2}\right )}{27 a^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 2.76, size = 5619, normalized size = 22.93
method | result | size |
default | \(\text {Expression too large to display}\) | \(5619\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.63, size = 320, normalized size = 1.31 \begin {gather*} \frac {18 \, {\left (3 \, a^{3} d x - 3 \, a^{3} d + {\left (a^{3} x^{3} - a^{3}\right )} e\right )} \arccos \left (a x\right ) \log \left (c\right ) + 18 \, {\left (a^{3} n x^{3} e + 3 \, a^{3} d n x\right )} \arccos \left (a x\right ) \log \left (x\right ) - 6 \, {\left (9 \, a^{3} d n x - 9 \, a^{3} d n + {\left (a^{3} n x^{3} - a^{3} n\right )} e\right )} \arccos \left (a x\right ) - 6 \, {\left (9 \, a^{3} d n + a^{3} n e - 3 \, {\left (3 \, a^{3} d + a^{3} e\right )} \log \left (c\right )\right )} \arctan \left (\frac {\sqrt {-a^{2} x^{2} + 1} a x}{a^{2} x^{2} - 1}\right ) - 3 \, {\left (9 \, a^{2} d n + 2 \, n e\right )} \log \left (\sqrt {-a^{2} x^{2} + 1} + 1\right ) + 3 \, {\left (9 \, a^{2} d n + 2 \, n e\right )} \log \left (\sqrt {-a^{2} x^{2} + 1} - 1\right ) + 2 \, {\left (54 \, a^{2} d n + {\left (2 \, a^{2} n x^{2} + 7 \, n\right )} e - 3 \, {\left (9 \, a^{2} d + {\left (a^{2} x^{2} + 2\right )} e\right )} \log \left (c\right ) - 3 \, {\left (9 \, a^{2} d n + {\left (a^{2} n x^{2} + 2 \, n\right )} e\right )} \log \left (x\right )\right )} \sqrt {-a^{2} x^{2} + 1}}{54 \, a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (d + e x^{2}\right ) \log {\left (c x^{n} \right )} \operatorname {acos}{\left (a x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 2136 vs.
\(2 (223) = 446\).
time = 7.26, size = 2136, normalized size = 8.72 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \ln \left (c\,x^n\right )\,\mathrm {acos}\left (a\,x\right )\,\left (e\,x^2+d\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________